from Page.Page import Page
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import time

class TestCase:
    def test_dog(self):
        # 使用Edge浏览器
        self.driver=webdriver.Edge()
        # 全屏
        self.driver.maximize_window()
        # 隐式等待
        self.driver.implicitly_wait(10)
        # 抛异常
        try:
            # 调用执行
            po=Page(self.driver)
            po.test_dog()
            # 强制等待
            time.sleep(2)
        except Exception as e:
            print(e)
        finally:
            # 清理
            self.driver.quit()
